﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WebService.DAO;
using System.Data;
using WebService.VO;

namespace WebService.BUS
{
    public class CategoryBUS
    {
        CategoryDAO cateDAO;
        public CategoryBUS()
        {
            cateDAO = new CategoryDAO();
        }

        public bool checklang(string categoryid, string lang)
        {
            return cateDAO.checklang(categoryid, lang);
        }

        public DataTable getCategoryList(string language)
        {
            return cateDAO.getCategoryList(language);
        }

        public void insert(CategoryVO cate)
        {
            cateDAO.insert(cate);
        }

        public void delete(string id)
        {
            cateDAO.delete(id);
        }

        public void update(CategoryVO cate)
        {
            cateDAO.update(cate);
        }
    }
}